From: Kenichi Handa Date: Mon, 6 Apr 2009 11:11:20 +0000 (+0000) Subject: (ftxfont_draw_backgrond): Fix args to XFillRectangle. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~952 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0bf3e2b313a14a56402889d92d8f08aa5fc94056;p=emacs.git (ftxfont_draw_backgrond): Fix args to XFillRectangle. --- diff --git a/src/ftxfont.c b/src/ftxfont.c index dcad85ba7fd..2cf45bb27a0 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c @@ -235,7 +235,7 @@ ftxfont_draw_backgrond (f, font, gc, x, y, width) GCForeground | GCBackground, &xgcv); XSetForeground (FRAME_X_DISPLAY (f), gc, xgcv.background); XFillRectangle (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), gc, - x, y - font->ascent, width, y + font->descent); + x, y - FONT_BASE (font), width, FONT_HEIGHT (font)); XSetForeground (FRAME_X_DISPLAY (f), gc, xgcv.foreground); }